// 历史记录项接口
export interface HistoryItem {
  url: string;
  title: string;
  timestamp: number;
  isFavorite: boolean;
  description?: string;
  order?: number;
  category?: string; // 添加分类字段
}

// 分类接口
export interface Category {
  id: string;
  name: string;
  color: string; // 分类颜色
  icon?: string; // 可选的图标
  count?: number; // 该分类下的条目数量
}

// 本地存储键
export const STORAGE_KEYS = {
  HISTORY: 'videoHistory',
  CATEGORIES: 'videoCategories',
  API_INDEX: 'currentApiIndex',
  USERNAME: 'username',
  THEME: 'theme'
};

// 默认分类
export const DEFAULT_CATEGORIES: Category[] = [
  { id: 'movie', name: '电影', color: '#f43f5e' },
  { id: 'tv', name: '电视剧', color: '#3b82f6' },
  { id: 'variety', name: '综艺', color: '#10b981' },
  { id: 'anime', name: '动漫', color: '#f97316' },
  { id: 'education', name: '教育', color: '#8b5cf6' },
  { id: 'other', name: '其他', color: '#6b7280' }
]; 